// home_9
//search value in massive
#include<iostream>

int main()
{
	const int n=10;
	int arrea[10]={0};
	int search_number=0;
	int count=0;	
	
	std::cout << "Enter number: " << std::endl;

	for( int i=0; i<n; ++i )
	{
		std::cin >> arrea[i];
	}

	std::cout << "Enter search value: ";
	std::cin >> search_number;
	
	for( int i=0; i<n; ++i )
	{
		if( arrea[i] == search_number ) 
		{
		std::cout << "index->" << i << std::endl;
		count++;
		}
	}
	std::cout << std::endl;
	if( 0 == count )
	{
	std::cout << "No search value in massive:\n" << std::endl;	
	}

	return 0;
}